#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QTcpSocket>
#include <QHostAddress>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private slots:
    void readMessage();
    void on_bt_conn_clicked();

    void on_bt_disconn_clicked();

    void on_bt_send_clicked();

    void on_bt_all_clicked();

    void on_bt_clear_clicked();

private:
    Ui::Widget *ui;
    QTcpSocket *socket;
    QList<QString> DataList;
    QString message;
    quint16 blockSize;

};
#endif // WIDGET_H
